/**
 * 将某个对象转成option选项，对象的key作为value, value作为label
 * @param obj
 */
export function transformObjectToOption<T extends object>(obj: T) {
    return Object.entries(obj).map(([value, label]) => ({
        value,
        label
    })) as Common.OptionWithKey<keyof T>[]
}
